package com.cn.bopu.common.upms.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:用户表
 * @author 史绍波
 * @since 2020-01-09
 */
@ApiModel(value ="用户表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @ApiModelProperty(value = "账号")
    @TableField("account")
    private String account;
    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;
    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;
    @ApiModelProperty(value = "微信登录标识")
    @TableField("wx_openid")
    private String wxOpenid;
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;
    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;
    @ApiModelProperty(value = "头像")
    @TableField("head_url")
    private String headUrl;
    @ApiModelProperty(value = "性别：0女，1男")
    @TableField("sex")
    private String sex;
    @ApiModelProperty(value = "创建时间戳")
    @TableField("create_timestamp")
    private LocalDateTime createTimestamp;
    @ApiModelProperty(value = "更新时间戳")
    @TableField("update_timestamp")
    private LocalDateTime updateTimestamp;


    public static final String ID = "id";

    public static final String ACCOUNT = "account";

    public static final String EMAIL = "email";

    public static final String PHONE = "phone";

    public static final String WX_OPENID = "wx_openid";

    public static final String PASSWORD = "password";

    public static final String NICK_NAME = "nick_name";

    public static final String HEAD_URL = "head_url";

    public static final String SEX = "sex";

    public static final String CREATE_TIMESTAMP = "create_timestamp";

    public static final String UPDATE_TIMESTAMP = "update_timestamp";

}
